package day004;

public class MethodTest05 {
    public static void main(String[] args) {
        compare(10, 20);
        compare((byte) 10, (byte) 10);
        compare((short) 10, (short) 10);
        compare(100L, 100L);
    }

    public static void compare(int a, int b) {
        if (a == b) {
            System.out.println(a + "等于" + b);
        } else {
            System.out.println(a + "不等于" + b);
        }
    }

    public static void compare(byte a, byte b) {
        if (a == b) {
            System.out.println(a + "等于" + b);
        } else {
            System.out.println(a + "不等于" + b);
        }
    }

    public static void compare(short a, short b) {
        if (a == b) {
            System.out.println(a + "等于" + b);
        } else {
            System.out.println(a + "不等于" + b);
        }
    }

    public static void compare(long a, long b) {
        if (a == b) {
            System.out.println(a + "等于" + b);
        } else {
            System.out.println(a + "不等于" + b);
        }
    }
}
